package com.umakr.ax.core.mybatis.proxy;

import com.baomidou.mybatisplus.plugins.Page;
import com.google.common.collect.Maps;

import java.util.Map;

/**
 *
 * @author Mikey
 * @date 2018/1/2
 */
public class PageCustom<T> extends Page<T> {
    Map<String,Object>  otherParameters = Maps.newHashMap();

    public PageCustom(int current, int size) {
        super(current, size);
    }

    public void addParam(String key, Object object){
        otherParameters.put(key,object);
    }
    public Boolean isEmpty(){
        return otherParameters.isEmpty();
    }

    public Map<String, Object> getOtherParameters() {
        return otherParameters;
    }
}
